Switch to CSS interpretation of rgb() and rgba() colors
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 2 Nov 2010 19:30:44 +0000 (15:30 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 5 Nov 2010 13:19:50 +0000 (22:19 +0900)
commitd2b64a1db2e0070f90c77a88ccf1537173befb83
tree5dcb6c05127ec630f7e28a38a3494d8c340b48fc
parent4bdff81f2e5f224d2b4dd9ebd671f8d6fbf81055
Switch to CSS interpretation of rgb() and rgba() colors

CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.

https://bugzilla.gnome.org/show_bug.cgi?id=633762
gdk/gdkrgba.c
gdk/tests/gdk-color.c